// 全局样式重置
.login-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  z-index: 1000;
}

// 背景效果
.login-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 25px 25px, rgba(255, 255, 255, 0.05) 2%, transparent 0%),
  radial-gradient(circle at 75px 75px, rgba(255, 255, 255, 0.05) 2%, transparent 0%);
  background-size: 100px 100px;
}

.bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0.9;
}

// 登录容器
.login-container {
  position: relative;
  z-index: 2;
  max-width: 400px;
  width: 100%;
  padding: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.login-container.loaded {
  opacity: 1;
  transform: translateY(0);
}

// 登录表单包装器
.login-form-wrapper {
  width: 100%;
}

// 登录头部
.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-title {
  margin-bottom: 10px;
  font-weight: 600;
}

.title-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #e6e6e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.login-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

// 登录卡片
.login-card {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: none;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

// 表单项
.login-form-item {
  margin-bottom: 20px;
}

.login-input {
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
}

.login-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

// 表单选项
.login-form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.login-checkbox {
  color: #666;
  font-size: 14px;
}

.login-forgot {
  color: #667eea;
  font-size: 14px;
  transition: color 0.3s ease;
}

.login-forgot:hover {
  color: #764ba2;
}

// 登录按钮
.login-button {
  width: 100%;
  height: 42px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  transition: all 0.3s ease;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.login-button:active {
  transform: translateY(0);
}

// 其他登录方式
.login-other {
  margin: 30px 0;
}

.login-divider {
  text-align: center;
  margin-bottom: 20px;
}

.login-divider span {
  display: inline-block;
  padding: 0 20px;
  color: #999;
  font-size: 14px;
  position: relative;
}

.login-divider span::before,
.login-divider span::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background-color: #e8e8e8;
}

.login-divider span::before {
  left: 0;
}

.login-divider span::after {
  right: 0;
}

// 社交登录按钮
.login-social {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.login-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f5f5f5;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.login-social-btn:hover {
  background-color: #667eea;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(102, 126, 234, 0.3);
}

@media (max-width: 768px) {
  .login-container {
    max-width: 90%;
  }

  .login-title {
    font-size: 24px;
  }

  .login-form-wrapper {
    padding: 10px;
  }
}
